//
//  MJTagClvCell.m
//  XLDoctor
//
//  Created by longma on 2018/10/22.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "ZTagClvCell.h"

@implementation ZTagClvCell

- (void)awakeFromNib {
    [super awakeFromNib];

    [self.labTitle mj_cornerRadius:6];

//    [self.labTitle mj_borderColor:UIColor.mj_grayColor width:1];
//    self.labTitle.textColor = UIColor.mj_grayColor;
}
- (void)setModel:(MJCommonModel *)model {
    _model = model;
    self.labTitle.text = model.title;
    if(model.isSelect){
        self.labTitle.textColor = UIColor.whiteColor;
        self.labTitle.backgroundColor = UIColor.mj_appColor;
        [self.labTitle mj_borderColor:UIColor.mj_appColor width:1];
    }else{
        self.labTitle.textColor = UIColor.mj_blackColor;
        self.labTitle.backgroundColor = UIColor.whiteColor;
        [self.labTitle mj_borderColor:[UIColor mj_colorWithHexString:@"#E5E5E5"] width:1];
        
    }
}
- (void)layoutSubviews {
    [super layoutSubviews];
    
//    [self.labTitle mj_cornerRadius:self.mj_height/2];

}
@end
